import request from '../utils/request'

//获取产品分类推荐列表
export function getProductTypeList() {
  return request({
    url: '/product-type/selectByCondition',
    method: 'get',
    params: {
      currentPage: 1,
      size: 5,
      isShow: 0
    }
  })
}

//获取产品推荐列表
export function getProductInfoList(data) {
  return request({
    url: '/product/selectByCondition',
    method: 'get',
    params: {
      productTypeId: data,
      currentPage: 1,
      size: 5,
      isShow: 0
    }
  })
}